import axios from "../utils/axios";


export function getOperationSta() {
    return axios.get('/operation/sta')
}

export function getDailyLogData(stock) {
    if (stock) {
        return axios.get('/operation/dailyLog?stock=' + stock)
    }
    return axios.get('/operation/dailyLog')
}

/**
 * 最近的操作
 * @returns 
 */
export function getLastedOperation(stock) {
    if (stock) {
        return axios.get('/operation/lasted?stock=' + stock)
    }
    return axios.get('/operation/lasted')
}